package com.itheima.client;


import com.itheima.common.domain.AjaxResult;
import com.itheima.entity.PmsProduct;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("goodsservice")
public interface BrandClient {
    @GetMapping("brand/listAll")
    AjaxResult listAllBrand();

    @GetMapping("product/find/{id}")
    PmsProduct findById(@PathVariable("id") Long id);
}
